﻿using System;
using Matrix.MaKaYunShang.Model.Enum;

namespace Matrix.MaKaYunShang.Model.Dto
{
    public class ViewUserCardDto 
    {	
        public int Id { get; set; }
        /// <summary>
        /// 卡券名称
        /// </summary>		
        public string CardName { get; set; }
        /// <summary>
        /// 券码
        /// </summary>		
        public string CardCode { get; set; }
        /// <summary>
        /// 卡券状态
        /// </summary>		
        public int CardStatus { get; set; }
        /// <summary>
        /// 卡券状态
        /// </summary>		
        public string CardStatusText 
        {
            get { return ((CloudCardEnum.UserCardStatus) CardStatus).ToString(); }
        }
        /// <summary>
        /// 领取时间
        /// </summary>		
        public DateTime AddTime { get; set; }
        /// <summary>
        /// 领取时间
        /// </summary>		
        public string ShowAddTime { get { return AddTime.ToString("yyyy-MM-dd HH:mm:ss"); } }
        /// <summary>
        /// 核销时间
        /// </summary>		
        public DateTime? VerifyTime { get; set; }

        /// <summary>
        /// 核销时间
        /// </summary>		
        public string ShowVerifyTime
        {
            get
            {
                return (VerifyTime == null ? "" : DateTime.Parse(VerifyTime.ToString()).ToString("yyyy-MM-dd HH:mm:ss"));
            }
        }

        /// <summary>
        /// 店铺名称
        /// </summary>		
        public string ShopName { get; set; }
        /// <summary>
        /// 核销店铺名称
        /// </summary>		
        public string VerifyShopName { get; set; }
        public string ConsumerAddress { get; set; }
        public string LogisticsNum { get; set; }
        public string LogisticsCompany { get; set; }
        /// <summary>
        /// 用户昵称
        /// </summary>
        public string ConsumerNickName { get; set; }
        /// <summary>
        /// 核销人账号
        /// </summary>
        public string VerifyUserName { get; set; }
        /// <summary>
        /// 卡券类型
        /// </summary>
        public string CardCategoryName { get; set; }
        /// <summary>
        /// 操作
        /// </summary>
        public string Action { get; set; }
    }
}
